local_secrets = Shipit::Engine.root.join('config/secrets.development.yml')
if local_secrets.exist?
  secrets = YAML.load(local_secrets.read)
  if Rails.env.development?
    Rails.application.secrets.deep_merge!(secrets)
  elsif Rails.env.test?
    Rails.application.secrets.merge!(redis_url: secrets['redis_url'])
  end
end
